package com.srxz.mobilepharmacy.util.httpclient;

import com.srxz.mobilepharmacy.util.httpclient.base.SendMessage;

import java.util.Map;

public class SendClient implements SendMessage {


    @Override
    public HttpClientResult doGet(String url) throws Exception {
        return HttpClientUtils.doGet(url);
    }

    @Override
    public HttpClientResult doGet(String url, Map<String, String> params) throws Exception {
        return HttpClientUtils.doGet(url, params);
    }

    @Override
    public HttpClientResult doGet(String url, Map<String, String> headers, Map<String, String> params) throws Exception {
        return HttpClientUtils.doGet(url, headers, params);
    }

    @Override
    public HttpClientResult doPost(String url) throws Exception {
        return HttpClientUtils.doPost(url);
    }

    @Override
    public HttpClientResult doPost(String url, Map<String, String> params) throws Exception {
        return HttpClientUtils.doPost(url, params);
    }

    @Override
    public HttpClientResult doPost(String url, Map<String, String> headers, Map<String, String> params) throws Exception {
        return HttpClientUtils.doPost(url, headers, params);
    }

    @Override
    public HttpClientResult doPut(String url) throws Exception {
        return HttpClientUtils.doPut(url);
    }

    @Override
    public HttpClientResult doPut(String url, Map<String, String> params) throws Exception {
        return HttpClientUtils.doPut(url, params);
    }

    @Override
    public HttpClientResult doDelete(String url) throws Exception {
        return HttpClientUtils.doDelete(url);
    }

    @Override
    public HttpClientResult doDelete(String url, Map<String, String> params) throws Exception {
        return HttpClientUtils.doDelete(url, params);
    }
}
